Skip to main content

pgTextOfCell

Type​

property

Summary​

Get and set the text of a cell in a PolyGrid.

Syntax​

set the pgTextOfCell of widget to {<column number>, <row number>}
get the pgTextOfCell of widget

Description​

Use the pgTextOfCell property to get and set the text of a cell in a PolyGrid.

Before calling the pgTextOfCell property, you must point to the cell for which you want to get or set the text. This is done with the pgInternalPointer property.

Examples​

on mouseUp
local tText

# The following code shows how to get the text of the fifth cell of the first column.
set the pgInternalPointer of widget"PolyGrid" to "1,5" --> Column 1, Row 5
put the pgTextOfCell of widget"PolyGrid" into tText
end mouseUp